package ch4;

/**
 * @author ANG.YU
 * @date 2020-08-09 13:27
 */
public class SimpleConstructor {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            new Rock(i);
        }
    }
}

class Rock {
    Rock(int i) { // This is the constructor
        System.out.println("Creating Rock" + i);
    }
}
